package org.s3.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.s3.project.entity.Cart;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author fy
 * @version 1.0
 * @Description
 * @date 2025/2/20 10:44
 */
@Mapper
@Repository
public interface CartMapper   extends BaseMapper<Cart> {

//    显示购物车

    public List<Cart> selectCartByUserId(@Param("name") String  name,@Param("userId") Integer userId);
}
